package com.hzw.saas.api.user.bo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.util.constants.PatternConsts;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author zzl
 * @since 05/25/2021
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("客户权益级别配置(含过期时间)")
public class CustomerLevelExpireBO extends CustomerLevelBO {

    private static final long serialVersionUID = 99684963066320767L;

    /**
     * AWS机时过期时间，由AWS机时有效期从当前时刻换算而来
     */
    @ApiModelProperty(value = "AWS机时过期时间，由AWS机时有效期从当前时刻换算而来,pattern="+ PatternConsts.NORM_DATE_PATTERN, position = 6)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date awsCoreTimeExpireTime;

    /**
     * HPC核时过期时间，由HPC核时有效期从当前时间换算而来
     */
    @ApiModelProperty(value = "HPC核时过期时间，由HPC核时有效期从当前时间换算而来,pattern="+ PatternConsts.NORM_DATE_PATTERN, position = 8)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hpcCoreTimeExpireTime;

    /**
     * 云存储空间过期时间，由云存储空间有效期从当前时刻换算而来
     */
    @ApiModelProperty(value = "云存储空间过期时间，由云存储空间有效期从当前时刻换算而来,pattern="+ PatternConsts.NORM_DATE_PATTERN, position = 10)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date cloudStorageExpireTIme;

}
